package com.js.rtu.util;


import com.js.rtu.RTUApplication;

import es.dmoral.toasty.Toasty;


public class ToastUtil {


    private ToastUtil() {
    }

    //正常
    public static void normal(CharSequence message) {
        Toasty.normal(RTUApplication.getAppContext(), message).show();
    }

    public static void normal(CharSequence message, int duration) {
        Toasty.normal(RTUApplication.getAppContext(), message, duration).show();


    }

    //警告
    public static void warning(CharSequence message) {
        Toasty.warning(RTUApplication.getAppContext(), message).show();
    }

    public static void warning(CharSequence message, int duration) {
        Toasty.warning(RTUApplication.getAppContext(), message, duration).show();
    }

    //信息
    public static void info(CharSequence message) {

        Toasty.info(RTUApplication.getAppContext(), message).show();
    }


    public static void info(CharSequence message, int duration) {
        Toasty.info(RTUApplication.getAppContext(), message, duration).show();
    }

    //成功
    public static void success(CharSequence message) {
        Toasty.success(RTUApplication.getAppContext(), message).show();
    }


    public static void success(CharSequence message, int duration) {
        Toasty.success(RTUApplication.getAppContext(), message, duration).show();
    }

    //错误
    public static void error(CharSequence message) {
        Toasty.error(RTUApplication.getAppContext(), message).show();
    }

    public static void error(CharSequence message, int duration) {
        Toasty.error(RTUApplication.getAppContext(), message, duration).show();

    }


}
